<?xml version="1.0"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
  xmlns:o="urn:schemas-microsoft-com:office:office"
  xmlns:x="urn:schemas-microsoft-com:office:excel"
  xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
  xmlns:html="http://www.w3.org/TR/REC-html40">
  <Worksheet ss:Name="Sheet1">
    <Table>
      <Row>
        <Cell><Data ss:Type="String">ID</Data></Cell>
        <Cell><Data ss:Type="String">小区名</Data></Cell>
        <Cell><Data ss:Type="String">建造时间</Data></Cell>
        <Cell><Data ss:Type="String">楼层</Data></Cell>
        <Cell><Data ss:Type="String">面积</Data></Cell>
        <Cell><Data ss:Type="String">房型</Data></Cell>
        <Cell><Data ss:Type="String">医院</Data></Cell>
        <Cell><Data ss:Type="String">公交</Data></Cell>
        <Cell><Data ss:Type="String">商场</Data></Cell>
        <Cell><Data ss:Type="String">地铁</Data></Cell>
        <Cell><Data ss:Type="String">学校</Data></Cell>
        <Cell><Data ss:Type="String">写字楼</Data></Cell>
        <Cell><Data ss:Type="String">每平米价格</Data></Cell>
      </Row>
    <% @houses.each do |house| %>
      <Row>
        <Cell><Data ss:Type="Number"><%= house.id %></Data></Cell>
        <Cell><Data ss:Type="String"><%= house.community %></Data></Cell>
        <Cell><Data ss:Type="String"><%= house.floor %></Data></Cell>
        <Cell><Data ss:Type="Number"><%= house.area %></Data></Cell>
        <Cell><Data ss:Type="String"><%= house.room_shape %></Data></Cell>
        <Cell><Data ss:Type="Number"><%= house.hospitals.length %></Data></Cell>
        <Cell><Data ss:Type="Number"><%= house.buses.length %></Data></Cell>
        <Cell><Data ss:Type="Number"><%= house.shops.length %></Data></Cell>
        <Cell><Data ss:Type="Number"><%= house.subways.length %></Data></Cell>
        <Cell><Data ss:Type="Number"><%= house.schools.length %></Data></Cell>
        <Cell><Data ss:Type="Number"><%= house.works.length %></Data></Cell>
        <Cell><Data ss:Type="Number"><%= house.average_price %></Data></Cell>
        
      </Row>
    <% end %>
    </Table>
  </Worksheet>
</Workbook>